﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace App.Model
{
    public class KaoHeFanWei
    {
        public string username { set; get; }
        public string xingming { set; get; }
        public string userinfoId { set; get; }
        public List<NeiRong> NeiRongs { set; get; }
        public string NeiRongsstr
        {
            set { }
            get
            {
                var lst = new List<string>();

                foreach (var item in this.NeiRongs)
                {
                    lst.Add(item.nr);
                }

                return string.Join(",", lst.ToArray());
            }
        }
        public int khfwryid { set; get; }
        public List<JiaoZhiGong> BeiKaoHeRenYuans { set; get; }

        public string BeiKaoHeRenYuansstr
        {
            set{}
            get
            {
                var lst = new List<string>();
                foreach (var item in this.BeiKaoHeRenYuans)
                {
                    lst.Add(item.XingMing);
                }

                return string.Join(",", lst.ToArray());
            }
        }
    }
}
